{extends file="public_menu.tpl"}
{block name="title"}{/block}
{block name="head" append}
<link href="style/add.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="js/add.js"></script>
{/block}
{block name="body" append}
<div id="add_form">
    <form action="index.php?app=add" method="post">
        <fieldset>
            <legend style="line-height: 50px;"></legend>
            <p>姓名：<input id="reg_name" type="text" name="name" /><span class="reg_error"></span></p>
            <p>性别：{html_radios name='sex' options=$sex labels=""}</p>
            <p>年龄：<input type="number" name="age" /></p>
            <p>出生日期：{html_select_date start_year='-70'}</p>
            <p>电话：<input id="reg_phone" type="text" name="phone" /><span class="reg_error"></span></p>
            <p>身份证号：<input id="reg_per_ID" type="text" name="per_ID" /><span class="reg_error"></span></p>
            {nocache}
            <p>所属部门：{html_options name='unit' options=$options}&nbsp;&nbsp;
            {/nocache}
                <a id="add_unit" href="javascript:void(0)" style="font-size: 14px;">新建部门</a>
                <a id="del_unit" href="javascript:void(0)" style="font-size: 14px;">删除当前所属部门</a></p>
            <p style="padding: 0;display: none;">
                <input type="text" name="add_unit" style="position: relative;left: 200px;"/>
                <input type="button" name="add_unit_sub" style="position: relative;left: 210px;" value="添加"/>
                <span class="reg_error" style="position: relative;top: 18px;"></span></p>
            <p><input type="submit" name="sub" value="添加成员" />
               <input type="reset" name="reset" value="重新填写" /><span class="reg_error"></span></p>
        </fieldset>
    </form>
</div>
{/block}